package com.javaspeak.designpatterns.go4.creational.prototype;

/**
 * Absract class which provides clone functionality and drawing functionality
 * for a Shape.
 *
 * @author John Dickerson
 */
public class Shape implements Cloneable {

    protected String pixels;


    /* (non-Javadoc)
     * @see java.lang.Object#clone()
     */
    protected Object clone() throws CloneNotSupportedException {

        return super.clone();
    }


    /**
     * Draws the pixel representation of the Shape
     */
    public void draw() {

        System.out.println( pixels );
    }
}
